<?php

/**
 * Customer_m
 */
class Customer_m extends CI_Model {

	function __construct()
	{
		parent::__construct();
		//$this->load->database();
	}


	/**
	 * search
	 */


	/**
	 * regist
	 */
	function regist($data) {
		// set parameter
		$this->db->set('CUSTOMER_GROUP_CODE', '1');
		$this->db->set('created_datetime', 'NOW()', false);
		$this->db->set('updated_datetime', 'NOW()', false);

		// insert
		$this->db->insert('customer', $data);
		
		
// 		$this->db->trans_start();
// 		$this->db->query('AN SQL QUERY...');
// 		$this->db->query('ANOTHER QUERY...');
// 		$this->db->query('AND YET ANOTHER QUERY...');
// 		$this->db->trans_complete();

// 		if ($this->db->trans_status() === FALSE)
// 		{
// 			$this->db->trans_rollback();
// 		}
// 		else
// 		{
// 			$this->db->trans_commit();
// 		}
	}

	/**
	 * update
	 */


}


/* End of file customer.php */
/* Location: s./zswebshop/models/customer.php */